<!DOCTYPE html>
<#include "/ftl/header.ftl">
<html>
<head>
    <meta charset="UTF-8">
    <title>Insert title here</title>
</head>
<script type="text/javascript">

    $(document).ready(function(){
        $("#btnsub").on("click",function(){
            $("#formData").submit();
        });
    });

    function back() {
        window.history.back(-1); //返回上一页
    }
</script>
<#include "/ftl/menu.ftl">
<body>
<div class="container">
    <div class="row">
        <div class="col-md-12">
            <ol class="breadcrumb">
                <li><a href="#">文章管理</a></li>
                <li><a href="#">文章列表</a></li>
                <li class="active">免费文章</li>
            </ol>
        </div>
    </div>
    <form  method="post"  enctype="multipart/form-data" id="formData">
        <div class="content controls npt col-sm-offset-2 text-center">

            <div class="col-md-9">

                <div class="block">

                    <div class="content controls">



                        <div class="form-row">
                            <div class="col-md-3">文章标题<span style="color: red">*</span></div>
                            <div class="col-md-9"><input type="text" class="form-control" id="title" name="title" placeholder="文章标题" ></input></div>
                        </div>
                        <div class="form-row">
                            <div class="col-md-3">文章属性</div>
                            <div class="col-md-9"><input type="text" class="form-control" id="attribute" name="attribute" placeholder="文章属性"  ></input></div>
                        </div>
                        <div class="form-row">
                            <div class="col-md-3">文章概要<span style="color: red">*</span></div>
                            <div class="col-md-9"><input type="text" class="form-control" id="summary" name="summary" placeholder="文章概要"  ></input></div>
                        </div>


                        <div class="form-row">
                            <div class="col-md-3">内容链接<span style="color: red">*</span></div>
                            <div class="col-md-9"><input type="text" class="form-control" id="contentUrl" name="contentUrl"placeholder="内容链接"  ></input></div>
                        </div>
                        <input type="hidden"  name="type" value="1">
                        <div class="form-row">
                            <div class="col-md-3">封面<span style="color: red">*</span></div>
                            <div class="col-md-9"><input type="file" class="form-control" id="file" name="file"  ></input></div>
                        </div>
                        <div class="form-row">
                            <div class="col-md-12">
                                <button class="btn btn-default btn-clean"  id="btnsub" type="button">提交</button>
                                <button class="btn btn-default btn-clean"   onclick="back()" type="button">返回</button>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </form>
</body>
</html>